package charatr04.example;
class Animal15{
    public  void shout(){
        System.out.println("喵喵······");
    }
}
class Dog15 extends Animal15{
    public void shout() {
        System.out.println("汪汪······");
    }
    public void eat(){
        System.out.println("吃骨头······");
    }
}
public class Example15 {
    public static void main(String[] args) {
        Dog15 dog = new Dog15();
        Animal15 an = dog;
        an.shout();
    }
}
